<!--  -->
<template>
  <div class="aside-main" v-if="tag">
    <div
      style="display: flex; align-items: center; justify-content: flex-start"
    >
      <div
        style="
          width: 70px;
          height: 70px;
          border-radius: 10%;
          overflow: hidden;
          margin: 20px 10px 20px 30px;
        "
      >
        <img
          style="width: 100%; height: 100%; object-fit: cover"
          :src="tag.picture"
          alt=""
        />
      </div>
      <div style="font-size: 14px;font-size: x-large;font-weight: bold;">
        {{ tag.name }}开源社区
      </div>
    </div>
    <div>
      <div class="discription">
        <el-row>
          <el-col :span="12">
            <el-statistic title="社区成员" :value="tag.people" />
          </el-col>
          <el-col :span="12">
            <el-statistic title="社区内容" :value="tag.articles" />
          </el-col>
        </el-row>
        <!-- <el-row>
          <el-col :span="12">
            <el-button size="large" type="primary" icon="Edit" circle />
          </el-col>
          <el-col :span="12">
            <el-button size="large" type="warning" icon="Star" circle />
          </el-col>
        </el-row> -->
      </div>
      <el-divider content-position="left">社区管理员(暂时无法完成)</el-divider>
      <div>
        <ul class="adminer">
          <li>
            <el-tooltip content="Vue 官方" placement="bottom">
              <a href="javascript:;" @click.prevent="">
                <img
                  src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
                  alt=""
                />
              </a>
            </el-tooltip>
          </li>
          <li>
            <el-tooltip content="Vue 官方" placement="bottom">
              <a href="javascript:;" @click.prevent="">
                <img
                  src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
                  alt=""
                />
              </a>
            </el-tooltip>
          </li>
          <li>
            <el-tooltip content="Vue 官方" placement="bottom">
              <a href="javascript:;" @click.prevent="">
                <img
                  src="https://fuss10.elemecdn.com/e/5d/4a731a90594a4af544c0c25941171jpeg.jpeg"
                  alt=""
                />
              </a>
            </el-tooltip>
          </li>
        </ul>
        <el-descriptions title="社区描述" style="margin-left: 10px">
          <el-descriptions-item label="">
            <el-text line-clamp="3" style="margin-right:15px ; color: #999aaa; cursor: pointer">
              {{ tag.description }}
            </el-text>
          </el-descriptions-item>
        </el-descriptions>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "AsideRight",
  components: {},
  props: {
    // 父组件传递过来的值
    tag: {
      type: Object,
      default: {},
    },
  },
  data() {
    return {};
  },
  computed: {},
  watch: {},
  methods: {},
  created() {},
  mounted() {},
};
</script>

<style scoped>
.aside-main {
  margin: 30px;

  border: 1px solid rgba(0, 0, 0, 0.1);
}
a {
  text-decoration: none;
  color: black;
}
.adminer {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  list-style: none;
}
.adminer li {
  width: 50px;
  height: 50px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  margin-bottom: 10px;
  margin-right: 5px;
  overflow: hidden;
}

.adminer li img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 图片填充方式设置为cover，保持纵横比例 */
  border-radius: 50%;
}

.discription el-row {
  margin-bottom: 10px;
 
}
.discription el-descriptions {
  border: 1px solid rgba(0, 0, 0, 0.1);
  padding: 10px;
}
</style>
